package com.hc.tenant.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hc.common.core.annotation.Excel;
import com.hc.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 机器人命令管理对象 t_robot_command
 *
 * @author yongjainz
 * @date 2021-03-26
 */
public class RobotCommand extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 命令 */
    private Integer commandId;

    /** 命令类型 */
    @Excel(name = "命令类型")
    private String commandType;

    /** 命令名称 */
    @Excel(name = "命令名称")
    private String commandName;

    /** 问题 */
    @Excel(name = "问题")
    private String requestText;

    /** 回应 */
    @Excel(name = "回应")
    private String responseText;

    private Long locationId;

    /** 移动位置 */
    private Location location;

    /** 删除 */
    @JsonIgnore
    private String delFlag;

    public void setCommandId(Integer commandId)
    {
        this.commandId = commandId;
    }

    public Integer getCommandId()
    {
        return commandId;
    }
    public void setCommandType(String commandType)
    {
        this.commandType = commandType;
    }

    public String getCommandType()
    {
        return commandType;
    }
    public void setCommandName(String commandName)
    {
        this.commandName = commandName;
    }

    public String getCommandName()
    {
        return commandName;
    }
    public void setRequestText(String requestText)
    {
        this.requestText = requestText;
    }

    public String getRequestText()
    {
        return requestText;
    }
    public void setResponseText(String responseText)
    {
        this.responseText = responseText;
    }

    public String getResponseText()
    {
        return responseText;
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public Long getLocationId() {
        return locationId;
    }

    public void setLocationId(Long locationId) {
        this.locationId = locationId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("commandId", getCommandId())
                .append("locationId", getLocationId())
                .append("commandType", getCommandType())
                .append("commandName", getCommandName())
                .append("requestText", getRequestText())
                .append("responseText", getResponseText())
                .append("location", getLocation())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .append("remark", getRemark())
                .toString();
    }
}